<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ymPrompt/ymPrompt_Ex.js"></script>
<link href="__THEME__/layout.css" rel="stylesheet" type="text/css" />
<link href="../Public/pop.css" rel="stylesheet" type="text/css" />

<body>
<script type="text/javascript">
    <!--
    //指定当前组模块URL地址
    var	URL		=	'__URL__';
    var	APP		=	'__APP__';
    var	PUBLIC	=	'__PUBLIC__';
    var	ROOT	=	'__ROOT__';
    //-->
</script>

<script>
    function addFriend(fuid) {
        var note = $.trim($("#note").val());
        if(!note){
            alert("不能为空!");
            return;
        }
       // var gid  = $("#gid option:selected").val();
        $.post(APP+"/Friend/addFriend",{fuid:fuid,note:note},function(txt){
            if(txt == 1){
                var fname = $("#fname").val();
                var tishi = ' 好友请求已经发送！<br />请耐心等待' + fname + '的确认。';
                $("#tishi").html(tishi);
                $("#f_group").hide();
                $("#f_button").html('<input name="input2" type="button" class="btn_b" value="关 闭" onclick="parent.ymPrompt.close();"/>')
            }else{

            }
        });

    }
</script>

<div class="pop">
    <div class="con">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:120px;">
            <tr>
                <td width="20%" height="100px" valign="top"><img src="{$uid|getUserFace}" />
                <input type="hidden" id="fname" value="{$uid|getUserName}"></td>
                <td width="80%" valign="top" id="tishi">
                    {$fri_tip}
                    <textarea name="" class="Text" cols="" rows="" style="width:99%; height:100px;" id="note"></textarea></td>
            </tr>
           <!-- <tr id="f_group">
                <td>分组：</td>
                <td id="tishi"><select name="gid" id="gid">
                        <volist name="user_groups" id="g">
                            <option value="{$g.id}">{$g.name}</option>
                        </volist>
                </select></td>
            </tr>-->
        </table>
    </div>
    <div class="btm" id="f_button">
        <input name="input" type="button" class="btn_b" value="确 定"  onclick="addFriend({$uid})"/>
        <input name="input2" type="button" class="btn_w" value="取 消" onclick="ymPrompt.close();" />
    </div>
</div>

</body>
